Integrand size = 24, antiderivative size = 74 \[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=-\frac {2 f \text {arctanh}\left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {e+f x}{b d (a+b \sinh (c+d x))} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5572, 2739, 632, 210} \[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=-\frac {2 f \text {arctanh}\left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {e+f x}{b d (a+b \sinh (c+d x))} \]
[In]
[Out]
Rule 210
Rule 632
Rule 2739
Rule 5572
Rubi steps \begin{align*} \text {integral}& = -\frac {e+f x}{b d (a+b \sinh (c+d x))}+\frac {f \int \frac {1}{a+b \sinh (c+d x)} \, dx}{b d} \\ & = -\frac {e+f x}{b d (a+b \sinh (c+d x))}-\frac {(2 i f) \text {Subst}\left (\int \frac {1}{a-2 i b x+a x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{b d^2} \\ & = -\frac {e+f x}{b d (a+b \sinh (c+d x))}+\frac {(4 i f) \text {Subst}\left (\int \frac {1}{-4 \left (a^2+b^2\right )-x^2} \, dx,x,-2 i b+2 a \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{b d^2} \\ & = -\frac {2 f \text {arctanh}\left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {e+f x}{b d (a+b \sinh (c+d x))} \\ \end{align*}
Time = 1.05 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.05 \[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=\frac {\frac {2 f \arctan \left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {-a^2-b^2}}\right )}{\sqrt {-a^2-b^2}}-\frac {d (e+f x)}{a+b \sinh (c+d x)}}{b d^2} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(163\) vs. \(2(71)=142\).
Time = 3.10 (sec) , antiderivative size = 164, normalized size of antiderivative = 2.22
method | result | size |
risch | \(-\frac {2 \left (f x +e \right ) {\mathrm e}^{d x +c}}{b d \left (b \,{\mathrm e}^{2 d x +2 c}+2 a \,{\mathrm e}^{d x +c}-b \right )}+\frac {f \ln \left ({\mathrm e}^{d x +c}+\frac {a \sqrt {a^{2}+b^{2}}-a^{2}-b^{2}}{\sqrt {a^{2}+b^{2}}\, b}\right )}{\sqrt {a^{2}+b^{2}}\, d^{2} b}-\frac {f \ln \left ({\mathrm e}^{d x +c}+\frac {a \sqrt {a^{2}+b^{2}}+a^{2}+b^{2}}{\sqrt {a^{2}+b^{2}}\, b}\right )}{\sqrt {a^{2}+b^{2}}\, d^{2} b}\) | \(164\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 411 vs. \(2 (71) = 142\).
Time = 0.24 (sec) , antiderivative size = 411, normalized size of antiderivative = 5.55 \[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=\frac {{\left (b f \cosh \left (d x + c\right )^{2} + b f \sinh \left (d x + c\right )^{2} + 2 \, a f \cosh \left (d x + c\right ) - b f + 2 \, {\left (b f \cosh \left (d x + c\right ) + a f\right )} \sinh \left (d x + c\right )\right )} \sqrt {a^{2} + b^{2}} \log \left (\frac {b^{2} \cosh \left (d x + c\right )^{2} + b^{2} \sinh \left (d x + c\right )^{2} + 2 \, a b \cosh \left (d x + c\right ) + 2 \, a^{2} + b^{2} + 2 \, {\left (b^{2} \cosh \left (d x + c\right ) + a b\right )} \sinh \left (d x + c\right ) - 2 \, \sqrt {a^{2} + b^{2}} {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right ) + a\right )}}{b \cosh \left (d x + c\right )^{2} + b \sinh \left (d x + c\right )^{2} + 2 \, a \cosh \left (d x + c\right ) + 2 \, {\left (b \cosh \left (d x + c\right ) + a\right )} \sinh \left (d x + c\right ) - b}\right ) - 2 \, {\left ({\left (a^{2} + b^{2}\right )} d f x + {\left (a^{2} + b^{2}\right )} d e\right )} \cosh \left (d x + c\right ) - 2 \, {\left ({\left (a^{2} + b^{2}\right )} d f x + {\left (a^{2} + b^{2}\right )} d e\right )} \sinh \left (d x + c\right )}{{\left (a^{2} b^{2} + b^{4}\right )} d^{2} \cosh \left (d x + c\right )^{2} + {\left (a^{2} b^{2} + b^{4}\right )} d^{2} \sinh \left (d x + c\right )^{2} + 2 \, {\left (a^{3} b + a b^{3}\right )} d^{2} \cosh \left (d x + c\right ) - {\left (a^{2} b^{2} + b^{4}\right )} d^{2} + 2 \, {\left ({\left (a^{2} b^{2} + b^{4}\right )} d^{2} \cosh \left (d x + c\right ) + {\left (a^{3} b + a b^{3}\right )} d^{2}\right )} \sinh \left (d x + c\right )} \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 157 vs. \(2 (71) = 142\).
Time = 0.36 (sec) , antiderivative size = 157, normalized size of antiderivative = 2.12 \[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=-f {\left (\frac {2 \, x e^{\left (d x + c\right )}}{b^{2} d e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b d e^{\left (d x + c\right )} - b^{2} d} - \frac {\log \left (\frac {b e^{\left (d x + c\right )} + a - \sqrt {a^{2} + b^{2}}}{b e^{\left (d x + c\right )} + a + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} b d^{2}}\right )} - \frac {2 \, e e^{\left (-d x - c\right )}}{{\left (2 \, a b e^{\left (-d x - c\right )} - b^{2} e^{\left (-2 \, d x - 2 \, c\right )} + b^{2}\right )} d} \]
[In]
[Out]
\[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=\int { \frac {{\left (f x + e\right )} \cosh \left (d x + c\right )}{{\left (b \sinh \left (d x + c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
Time = 1.32 (sec) , antiderivative size = 199, normalized size of antiderivative = 2.69 \[ \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx=\frac {f\,\ln \left (\frac {2\,f\,\left (b-a\,{\mathrm {e}}^{c+d\,x}\right )}{b^2\,d\,\sqrt {a^2+b^2}}-\frac {2\,f\,{\mathrm {e}}^{c+d\,x}}{b^2\,d}\right )}{b\,d^2\,\sqrt {a^2+b^2}}-\frac {f\,\ln \left (-\frac {2\,f\,{\mathrm {e}}^{c+d\,x}}{b^2\,d}-\frac {2\,f\,\left (b-a\,{\mathrm {e}}^{c+d\,x}\right )}{b^2\,d\,\sqrt {a^2+b^2}}\right )}{b\,d^2\,\sqrt {a^2+b^2}}-\frac {2\,{\mathrm {e}}^{c+d\,x}\,\left (a^2\,e+b^2\,e+a^2\,f\,x+b^2\,f\,x\right )}{d\,\left (a^2\,b+b^3\right )\,\left (2\,a\,{\mathrm {e}}^{c+d\,x}-b+b\,{\mathrm {e}}^{2\,c+2\,d\,x}\right )} \]
[In]
[Out]